home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enter Special 5: Digital Photography
/
ENTER Special 05.iso
/
Grafika
/
Paint Shop Pro 8.0
/
psp800ev.exe
/
Data1.cab
/
FixTk.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2003-04-22
|
328 b
|
12 lines
import sys, os, _tkinter
ver = str(_tkinter.TCL_VERSION)
for t in "tcl", "tk", "tix":
key = t.upper() + "_LIBRARY"
try:
v = os.environ[key]
except KeyError:
v = os.path.join(sys.prefix, "tcl", t+ver)
if os.path.exists(os.path.join(v, "tclIndex")):
os.environ[key] = v